package itcz.example.pattern.structure_type.adapter.class_adapter;

/**
 * @ClassName: Computer
 * @Author: ITCZ
 * @Date: 2025-04-23
 * @Description: 计算机类
 */
public class Computer {
    // 读取SD卡中的数据
    public String readSD(SDCard sdCard) {
        if (sdCard == null) {
            throw new NullPointerException("SDCard is not null");
        }
        return sdCard.readSD();
    }
}
